module AutoComplete
  module IncludeHelper
    def auto_complete_include(url)
      output = []
      output << javascript_include_tag("jquery")
      output << javascript_include_tag("jquery.bgiframe.min.js")
      output << javascript_include_tag("dimensions")
      output << javascript_include_tag("jquery.autocomplete.js")
      output << "<script type='text/javascript' src='" + url + "'></script>"
      output << stylesheet_link_tag("jquery.autocomplete.css")
      output * "\n"
    end
  end
end